/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.feedback.repository.entity;

import com.gitee.peigenlpy.actable.annotation.Column;
import com.gitee.peigenlpy.actable.annotation.Index;
import com.gitee.peigenlpy.actable.annotation.Table;
import com.gitee.peigenlpy.actable.constants.MySqlCharsetConstant;
import com.gitee.peigenlpy.actable.constants.MySqlEngineConstant;
import com.gitee.peigenlpy.actable.constants.MySqlTypeConstant;
import info.peigen.hotpot.component.data.repository.beetlsql.entity.AbstractCreateTimeEntity;
import info.peigen.hotpot.component.feedback.service.enums.FeedbackType;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

/**
 * <b>(FeedbackEntity)</b>
 * 反馈表
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/11/17
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
@Table(name = "feedback", comment = "反馈表", charset = MySqlCharsetConstant.UTF8MB4, engine = MySqlEngineConstant.InnoDB)
@org.beetl.sql.annotation.entity.Table(name = "feedback")
public class FeedbackEntity extends AbstractCreateTimeEntity {
    @Column(name = "customer_id", type = MySqlTypeConstant.VARCHAR, length = 30, isNull = false, comment = "customerId")
    @Index(value = "customerId", columns = "customer_id")
    @org.beetl.sql.annotation.entity.Column("customer_id")
    String       customerId;
    @Column(name = "type", type = MySqlTypeConstant.VARCHAR, length = 20, isNull = false, comment = "反馈类型")
    @org.beetl.sql.annotation.entity.Column("type")
    FeedbackType type;
    @Column(name = "context", type = MySqlTypeConstant.VARCHAR, length = 150, comment = "内容")
    @org.beetl.sql.annotation.entity.Column("context")
    String       context;
    @Column(name = "images", type = MySqlTypeConstant.VARCHAR, length = 500, comment = "图片路径")
    @org.beetl.sql.annotation.entity.Column("images")
    String       images;
}